<%-- 
    Document   : createNewVotingList
    Created on : Apr 7, 2011, 12:18:15 AM
    Author     : ChuckToh
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<h3>Create New Voting List</h3>
<c:choose>
    <c:when test="${!empty afterNewVotingListMessage}">
        <c:out value="${afterNewVotingListMessage}" escapeXml="false"></c:out>
        <c:remove var="afterNewVotingListMessage" scope="session"></c:remove>
        <font size="-1"><br/><br/>Please refresh the page to create voting list.</font>
        </c:when>

    <c:otherwise>
        <form action="../processNewVotingList" method="post">
            <table cellspacing="5" cellpadding="5">
                <tr>
                    <td>New Topics:</td>
                    <td>
                        <input type="text" name="voteTopics" maxlength="100">
                        <br><font size="-1">Add a comma after every topic</font>
                    </td>
                </tr>

                <tr>
                    <td>Date to commence vote:</td>
                    <td>
                        <input id="datepicker" name="dateStart" type="text">
                    </td>
                </tr>

                <tr>
                    <td>Date to end vote:</td>
                    <td>
                        <input id="datepicker2" name="dateEnd" type="text">
                    </td>
                </tr>

                <tr>
                    <td colspan="2" align="right">
                        <input type="submit" value="Create!">&nbsp;&nbsp;
                        <input type="reset" value="Clear">
                    </td>
                </tr>
            </table>
        </form>
    </c:otherwise>
</c:choose>